body{
  padding: 0;
  margin: 0;
}

a:hover{/*鼠标悬停的时候字体的变化*/
  font-size: 17pt;/*设置字体大小*/
}

.container > nav > ul > li > ul >li >a:hover{
  font-size: 13pt;
}

.container > nav > ul > li > ul > li > ul > li > a:hover{
  font-size: 13pt;
}


@media (min-width:769px) {

  .container{
    min-width: 500px;
    max-width: 800px;
    min-height: 500px;
    margin:0 auto;
  }

  .container > header{
    border: 1px solid #eee;
    border-radius: 20px 20px 0 0;/*设置header边框弧度角，左上 右上 左下 右下*/
    padding: 15px;
    background-color: #efe;
    word-wrap: break-word;
  }

  .container > nav{
    background:linear-gradient(black , #eee);
  }

  .container > nav > ul > li{
    list-style: none;
    display: inline-block;
    position: relative;
  }

  .container > nav >ul > li > ul {
    display: none;
    width: 120px;
    padding: 0px;
    margin: 0px;
    position: absolute;
    top: 40px;
    background-color:#aaa ;
  }

  .container > nav >ul > li:hover > ul {
    display: block;
  }

  .container > nav> ul> li >ul >li>span{
    display: none;
  }

  .container > nav > ul > li > ul >li:hover >span {
    display: inline;
  }

  .container > nav > ul > li > ul > li {
    list-style: none;
    margin:0px;
    padding: 0px;
  }

  .container > nav > ul > li > ul > li > ul > li{
    list-style: none;
  }

  .container > nav > ul > li > ul > li > ul{
    display: none;
    width: 150px;
    padding: 0px;
    margin-top: -40px;
    position: absolute;
    left:120px;
    background-color: #ccc;
  }

  .container > nav > ul > li > ul > li:hover > ul{
    display: block;
  }

  .container > nav  a{
    text-decoration: none;/*去除下划线*/
    padding: 10px;
    line-height: 40px;
    font-style: italic;
  }

  a:link , a:visited , a:active{
    color: #fff;
  }

  .main{
    border: 1px solid #eee;
    min-height: 300px;
  }

  .product-list > .product{
    width: 80px;
    height: 120px;
    border: 1px solid #eee;
    text-align: center;/*文本居中 */
    display: inline-block;
    margin: 10px;
  }

  .product > h1{
    margin: 3px;
  }

  .product > h4{
    margin: 3px;
  }

  .product > img{
    width: 70px;
    height: 60px;
  }

  .product > p{
    margin: 3px;
    font-size: 10pt;
    color: #aaa;
  }
}

@media (max-width:768px) {
  .container{
    width: auto;
    height: auto;
    margin:0;
  }

  .container > header{
    width: auto;
    height: auto;
    border: 1px solid #eee;
    border-radius: 20px 20px 20px 20px;/*设置header边框弧度角，左上 右上 左下 右下*/
    padding: 15px;
    background-color: #efe;
    word-wrap: break-word;
  }

  .container > nav{
    width: 200px;
    background:linear-gradient(black , #eee);
  }

  .container > nav > ul > li{
    list-style: none;
    display: block;
    position: relative;
  }

  .container > nav >ul > li > ul {
    display: none;
    width: 120px;
    padding: 0px;
    margin-top: -40px;
    position: absolute;
    left: 160px;
    background-color:#aaa ;
  }

  .container > nav> ul> li >ul >li>span{
    display: none;
  }

  .container > nav > ul > li > ul > li {
    list-style: none;
    margin:0px;
    padding: 0px;
  }

  .container > nav > ul > li > ul > li > ul > li{
    list-style: none;
  }

  .container > nav > ul > li > ul >li:hover >span {
    display: inline;
  }

  .container > nav > ul > li > ul > li > ul{
    display: none;
    width: 150px;
    padding: 0px;
    margin-top: -40px;
    position: absolute;
    left:120px;
    background-color: #ccc;
  }

  .container > nav > ul > li > ul > li:active > ul{
    display: block;
  }

  .container > nav  a{
    text-decoration: none;/*去除下划线*/
    padding: 10px;
    line-height: 40px;
    font-style: italic;
  }

  a:link , a:visited , a:active{
    color: #fff;
  }

  .main{
    border: 1px solid #eee;
    min-height: 300px;
  }

  .product-list > .product{
    width: 120px;
    height: 180px;
    border: 1px solid #eee;
    text-align: center;/*文本居中 */
    display: inline-block;
    margin: 10px;
  }

  .product > h1{
    margin: 3px;
  }

  .product > h4{
    margin: 3px;
  }

  .product > img{
    width: 105px;
    height: 90px;
  }

  .product > p{
    margin: 3px;
    font-size: 10pt;
    color: #aaa;
  }
}
